package world.ztomorrow.novel.manager;


import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import world.ztomorrow.novel.utils.CacheUtils;

@Component
@RequiredArgsConstructor
public class ClearCache {

    private final CacheUtils cacheUtils;

    /**
     * 清理缓存
     */
    public void evictBookChapterCache(String localKey, String redisKey) {
        cacheUtils.clearCache(localKey, redisKey);
    }
}
